#include <iostream>

struct inflatable
{
	char name[20];
	float volume;
	double price;
};

int main(int argc, char const *argv[])
{
	using namespace std;
	 inflatable * ps = new inflatable ;
	 cout << "Enter name of  inflatable item :" <<endl;
	 cin.get(ps->name,20);
	 cout << "Enter volume in cubic feet :" << endl;
	 cin>> (*ps).volume;
	 cout <<"Price is : $";
	 cin >> ps->price;
	 cout << "name :" << (*ps).name << endl;
	 cout << "volume :" << ps->volume << endl;
	 cout << "price :" << ps->price <<endl;
	 delete ps;//不删除会导致内存泄漏、

	return 0;
}